import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'login',
  component: () => import('../views/login.vue')
}, {
  path: '/login',
  name: 'login',
  component: () => import('../views/login.vue')
}, {
  path: '/index',
  name: 'index',
  component: () => import('../views/index.vue')
}, {
  path: '/detail',
  name: 'detail',
  component: () => import('../views/detail.vue')
}, {
  path: '/listen',
  name: 'listen',
  component: () => import('../views/listen.vue')
}, {
  path: '/listenDetail',
  name: 'listenDetail',
  component: () => import('../views/listenDetail.vue')
}, {
  path: '/listenAnswer',
  name: 'listenAnswer',
  component: () => import('../views/listenAnswer.vue')
}, {
  path: '/readDetail',
  name: 'readDetail',
  component: () => import('../views/readDetail.vue')
}, {
  path: '/readDetail2',
  name: 'readDetail2',
  component: () => import('../views/readDetail2.vue')
}, {
  path: '/readAnswer',
  name: 'readAnswer',
  component: () => import('../views/readAnswer.vue')
}, {
  path: '/writeDetail',
  name: 'writeDetail',
  component: () => import('../views/writeDetail.vue')
}, {
  path: '/writeDetail2',
  name: 'writeDetail2',
  component: () => import('../views/writeDetail2.vue')
}, {
  path: '/writeAnswer',
  name: 'writeAnswer',
  component: () => import('../views/writeAnswer.vue')
}, {
  path: '/result',
  name: 'result',
  component: () => import('../views/result.vue')
}]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
